package com.sasis.model;
// Generated 2007-4-4 11:19:06 by Hibernate Tools 3.1.0.beta4



/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="VIP_TASK"
 *     
 */

public class VipTask extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
    private Integer taskId;
    private Integer requestId;
    private String ary;

    // Constructors

    public String getAry() {
		return ary;
	}


	public void setAry(String ary) {
		this.ary = ary;
	}


	/** default constructor */
    public VipTask() {
    }

    
    /** full constructor */
    public VipTask(Integer taskId, Integer requestId) {
        this.taskId = taskId;
        this.requestId = requestId;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="TASK_ID"
     *             length="26"
     *         
     */

    public Integer getTaskId() {
        return this.taskId;
    }
    
    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }
    /**       
     *      *            @hibernate.property
     *             column="REQUEST_ID"
     *             length="26"
     *         
     */

    public Integer getRequestId() {
        return this.requestId;
    }
    
    public void setRequestId(Integer requestId) {
        this.requestId = requestId;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("taskId").append("='").append(getTaskId()).append("' ");			
      buffer.append("requestId").append("='").append(getRequestId()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof VipTask) ) return false;
		 VipTask castOther = ( VipTask ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getTaskId()==castOther.getTaskId()) || ( this.getTaskId()!=null && castOther.getTaskId()!=null && this.getTaskId().equals(castOther.getTaskId()) ) )
 && ( (this.getRequestId()==castOther.getRequestId()) || ( this.getRequestId()!=null && castOther.getRequestId()!=null && this.getRequestId().equals(castOther.getRequestId()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getTaskId() == null ? 0 : this.getTaskId().hashCode() );
         result = 37 * result + ( getRequestId() == null ? 0 : this.getRequestId().hashCode() );
         return result;
   }   





}
